Skip to content

feat: add trial_end_timestamp to UserInfo and display in auth status#66

Closed
claude[bot] wants to merge 1 commit into
mainfrom
feat/trial-end-timestamp
Closed

feat: add trial_end_timestamp to UserInfo and display in auth status#66
claude[bot] wants to merge 1 commit into
mainfrom
feat/trial-end-timestamp

Conversation

@claude

@claude claude Bot commented Apr 6, 2026

Copy link
Copy Markdown

Summary

  • Add TrialEndTimestamp *int64 to UserInfo struct in internal/api/client.go to capture the new trial_end_timestamp field returned by GET /api/user_info
  • Include trial_end_timestamp in JSON output of sl auth status --json
  • Display a human-readable trial end date (e.g. 2026-04-06) in table output when in_trial is true and the timestamp is non-nil

Test plan

  • make build && make test passes (verified)
  • sl auth status shows "Trial ends: YYYY-MM-DD" line for trial accounts
  • sl auth status --json | jq .trial_end_timestamp returns the timestamp or null

Closes #65

🤖 Generated with Claude Code

The SimpleLogin API now returns trial_end_timestamp (Unix timestamp or
null) in GET /api/user_info. Update the UserInfo struct to capture this
field, include it in JSON output, and display a human-readable trial end
date in the table output when the user is in trial.

Closes #65

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@claude claude Bot requested a review from mexcool as a code owner April 6, 2026 17:22
@mexcool mexcool closed this Apr 6, 2026
@mexcool mexcool deleted the feat/trial-end-timestamp branch April 6, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upstream: GET /api/user_info now returns trial_end_timestamp

1 participant